/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.gwc.yy.liuxue.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 院校Entity
 * @author 黎俊涛
 * @version 2017-07-05
 */
public class ProfIntro extends DataEntity<ProfIntro> {
	
	private static final long serialVersionUID = 1L;
	private School school;		// 学校 父类
	private String profName;		// 专业名称
	private String descript;		// 描述
	
	public ProfIntro() {
		super();
	}

	public ProfIntro(String id){
		super(id);
	}

	public ProfIntro(School school){
		this.school = school;
	}

	@Length(min=1, max=64, message="学校长度必须介于 1 和 64 之间")
	public School getSchool() {
		return school;
	}

	public void setSchool(School school) {
		this.school = school;
	}
	
	@Length(min=1, max=100, message="专业名称长度必须介于 1 和 100 之间")
	public String getProfName() {
		return profName;
	}

	public void setProfName(String profName) {
		this.profName = profName;
	}
	
	@Length(min=0, max=1000, message="描述长度必须介于 0 和 1000 之间")
	public String getDescript() {
		return descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}
	
}